﻿using UnityEngine;
using UnityEngine.InputSystem;

namespace DoDove
{
    public class InputActionOtherMapsHandler:InputHandler
    {
        private DoDoveInputAction.OtherMapsActions _curMapActions;
        
        #region 注册事件
        protected override void OnRegister()
        {
            _curMapActions= inputManager.CurInputActions.OtherMaps;
            _curMapActions.PointLeftButtonClick.performed += PointOtherLeftBtnClick;
        }
        #endregion

        #region 事件行为处理
        private void PointOtherLeftBtnClick(InputAction.CallbackContext context)
        {
            Debug.Log("PointOtherLeftBtnClick-----");
            inputManager.SwitchPlayerMap();
        }
        #endregion
    }
}